package com.probox.common.entity.service.wechat;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.customer.api.domain.CustomerInfoAccountVo;
import com.probox.wechat.api.domain.WechatAuthorizationInfoVo;
import com.probox.common.entity.domain.wechat.WechatAuthorizationInfo;

/**
 * 授权信息Service接口
 *
 * @author usoft
 * @date 2021-07-06
 */
public interface IWechatAuthorizationInfoService extends IService<WechatAuthorizationInfo> {


    /**
     * 根据appid查找授权信息
     *
     * @param authorizerAppid
     * @return
     */
    public WechatAuthorizationInfoVo getAuthorizationInfo(String authorizerAppid);


    /**
     * 公众号登录
     *
     * @param customerInfoAccountVo
     * @return
     */
    public CustomerInfoAccountVo wechatAllworkLogin(CustomerInfoAccountVo customerInfoAccountVo);

    /**
     * 获取jsapi_ticket
     *
     * @return
     */
    public String getTicket(String appId);

    public String sign(String jsapi_ticket, String timestamp, String nocestr, String url);

    /**
     * 根据商户id查询域名
     *
     * @param uid
     * @return
     */
    public String getDomainName(Long uid);
}
